package com.ruandi.Test16;

public class Teacher extends FuST{
    //属性
    private String content;

    //构造参数
    public Teacher() {
    }

    public Teacher(String name, int age, String content) {
        super(name, age);
        this.content = content;
    }

    //行为
    public void eat(){
        System.out.println("年龄为"+getAge()+"的"+getName()+"老师正在吃饭....");
    }

    public void teach(){
        System.out.println("年龄为"+getAge()+"的"+getName()+"老师正在亢奋的讲着"+content+"的知识........");
    }

    //get set

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
